package com.glodon.paas.job;

public interface JobConstants {
    // task
    String PROPERTY_TASK_ID = "taskId";
    String PROPERTY_USER_ID = "userId";
    String PROPERTY_TASK_TYPE = "type";
    String PROPERTY_TASK_COMPLETE = "taskComplete";
    String PROPERTY_TASK_FAILURE = "taskFailure";
    String PROPERTY_TASK_START_TIME = "taskStartTime";
    String PROPERTY_TASK_END_TIME = "taskEndTime";
    String PROPERTY_TASK_FILE_NAME = "filename";
    String PROPERTY_TASK_DELETE_INPUT = "deleteInput";
    // begin downloadbegin time
    String PROPERTY_TASK_DOWNLOADBEGIN_TIME = "downLoadBeginTime";
    
    // download end time
    String PROPERTY_TASK_DOWNLOADEND_TIME = "downLoadEndTime";
    
    // begin  uploadbegin time
    String PROPERTY_TASK_UPLOADBEGIN_TIME = "upLoadBeginTime";
    
    //  upload end time
    String PROPERTY_TASK_UPLOADEND_TIME = "upLoadEndTime";
    
    // begin caculation time
    String PROPERTY_TASK_CACULATIONBEGIN_TIME = "caculationBeginTime";
    //caculation end time
    String PROPERTY_TASK_CACULATIONEND_TIME = "caculationEndTime";

    // begin taskintoquque time
    String PROPERTY_TASK_INQUQUE_TIME = "taskInQuqueTime";
    // begin file size
    String JOB_FILESIZE = "jobFileSize";
    // task parameters
    String INPUT = "input";
    String AGENT = "agent";
    String ORIGIN_INPUT = "originInput";
    String OUTPUT = "output";
    String ORIGIN_OUTPUT = "originOutput";
    String FAIL_COUNT = "failCount";
    String TASK_CALLBACK = "callback";
    String USER_ID = "userId";

    // error
    String ERROR_MSG = "errorMsg";
    String TIMEOUT_MSG = "timeout";

    // queue names
    String AGENT_RESULT_QUEUE = "task-result-queue";
    String TASK_QUEUE_PREFIX = "task-queue-";
    String RECYCLE_QUEUE = "recycle-queue";

    // std command
    String TASK_PROGRESS = "progress";
    String TASK_MESSAGE = "message";
    String SET_TIMEOUT = "setTimeout";
    String UNSET_TIMEOUT = "unsetTimeout";

    // job
    String JOB_ID = "jobId";
    String JOB_COMPLETE = "100";
    String JOB_START_TIME = "startTime";
    String JOB_END_TIME = "endTime";

    String STORIES = "stories";

    String PROPERTY_TASK_STATUS = "status";
    String PROPERTY_TASK_RESPONSE_TIME = "responseTime";
    String ORIGIN_FILENAME = "originFilename";
}
